package com.xander.qqdatabase.service.impl;

import com.xander.qqdatabase.entity.Log;
import com.xander.qqdatabase.mapper.LogMapper;
import com.xander.qqdatabase.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 叶振东
 * @date 2019-01-23
 */
@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper logMapper;

    @Override
    public void insertLog(Log log) {
        logMapper.insertLog(log);
    }

    @Override
    public List<Log> getAll(Log log) {
        return logMapper.getAll(log);
    }
}
